Rotational excitation of mono- and doubly-deuterated water by hydrogen molecules