XAFS studies of the local environment of Pb impurity atoms in barium, strontium, and calcium titanates