Charge transfer in H + -H and H + -D collisions within the energy range 0.1-150 eV