Local structure and dynamics in relaxor-ferroelectric PbSc1/2Nb1/2O3 and PbSc1/2Ta1/2O3 single crystals