Anisotropic intermolecular potentials from an analysis of spectra of H2‐ and D2‐inert gas complexes