Electromagnetic excitations in the constituent quark model