Crystal-field theory of Co 2+ in doped ZnO