X-ray photoelectron spectroscopy: a powerful tool for electronic and structural investigations of covalently assembled monolayers. A representative case study