2-adjoint equivalences in homotopy type theory (Logical Methods in Computer Science, 2021)