UV Photodesorption of Methanol in Pure and CO-rich Ices: Desorption Rates of the Intact Molecule and of the Photofragments