Self-consistent calculation of the electronic structure of silicon and germanium using the intersecting-spheres model