Phonon density of states and anharmonicity of UO2