The luminescence of divalent and trivalent rare earth ions in the crystalline and glass modifications of SrB4O7