Electronic structure of platinum complex/Zn-porphyrinato assembled macrosystems, related precursors and model molecules, as probed by X-ray absorption spectroscopy (NEXAFS): theory and experiment