Energy Spectrum of Two-Component Bose–Einstein Condensates in Optical Lattices