Neutron-rich In and Cd isotopes close to the doubly-magic 132Sn