Nuclear deformations in the pairing-plus-quadrupole model: (III). Static nuclear shapes in the rare-earth region