Nonergodic states of charged colloidal suspensions: repulsive and attractive glasses and gels.