Luminescence of rare-earth ions in Ca3(BO3)2