Quantum Phase Transition in Magnetic Nanographenes on a Lead Superconductor.