Manipulation of the Magnetic State of a Porphyrin-Based Molecule on Gold: From Kondo to Quantum Nanomagnet via the Charge Fluctuation Regime.