Two-loop amplitudes for processes gg → Hg, qg → Hq and qq¯→Hg$$ \mathrm{q}\overline{\mathrm{q}}\to \mathrm{H}\mathrm{g} $$ at large Higgs transverse momentum