Energetics and dynamics of CH4 and H2O dissociation on metal surfaces