Role of Mg2+ in hammerhead ribozyme catalysis from molecular simulation.