Beam-foil lifetime measurements for tellurium ions belonging to the Ag i and Cd i isoelectronic sequences