Effects of rare earth adsorption on electronic structure and optical properties in β-Si3N4 ceramics from first principles