The role of surface vibrations in forming the giant dipole resonance of spheroidal nuclei