Localized states in disordered systems