Resonant photofragmentation of methanol at the carbon and oxygen K-edge by high-resolution ion-yield spectroscopy