Isotopic effect on the high pressure melting curves of helium and hydrogen