Abundances of disk and bulge giants from high-resolution optical spectra II. O, Mg, Co, and Ti in the bulge sample