First principles study of rare-earth oxides