A Raman view of local lattice distortions and charge transfer in cuprates