Mellin moments of the next-to-next-to-leading order coefficient functions for the Drell–Yan process and hadronic Higgs-boson production