Structural characterization and formation mechanism of sitting-atop (SAT) complexes of 5,10,15,20-tetraphenylporphyrin with divalent metal ions. Structure of the Cu(II)-SAT complex as determined by fluorescent extended X-ray absorption fine structure.