The translational and rotational energy of hydrogen molecules after recombination on interstellar grains