On stability of structures and patterns in extended systems