Consistent calculation of diabatic energies and diabatic coupling terms in the van der Waals region: Application to the O(3P)⋯H21Σg+ system