Pressure broadening and shifting in microwave and infrared spectra of molecules of arbitrary symmetry: An irreducible tensor approach