Ab initio calculation of the magnetocrystalline anisotropy and spin and orbital moments of a bcc Co(001) surface