First-principles study of electronic structure and optical properties of Er:Lu2O3