Calculations of the energy spectra of Zn, Ga, and Ge isotopes by the shell model