Crystal-field excitations in uranium dioxide