Diatomic molecules, rotations, and path‐integral Monte Carlo simulations: N2 and H2 on graphite