Mg2+-Dependent Methyl Transfer by a Knotted Protein: A Molecular Dynamics Simulation and Quantum Mechanics Study