Electric-field-induced changes of magnetic moments and magnetocrystalline anisotropy in ultrathin cobalt films