From quantum alchemy to Hammett's equation: Covalent bonding from atomic energy partitioning