Resolved-sideband cooling of a micromechanical oscillator