Crystal field and magnetic structure of UO 2