Discrete spectrum for a system of electrically charged particles