Theoretical formalism and experimental confirmation of intermolecular dipolar effects under time-averaged magnetic field gradients