A study of the giant dipole resonance in doubly even tellurium and cerium isotopes