Magnetism and electronic structure in Zn and Ti doped CoO: A first-principles study