Correlation between mixing of Cu d orbitals and Tc determined by polarized Cu L3 XAS: Experimental evidence for pairing mediated by d-d excitations