Cap-layer-dependent oxidation of ultrathin cobalt films and its effect on the magnetic contrast in scanning electron microscopy with polarization analysis