Exploiting coordination geometry to selectively predict the r-donor and p-acceptor abilities of ligands: a back-and-forth journey between electronic properties and spectroscopy