First order phase transition in orthohydrogen and paradeuterium