Design, synthesis, characterization and application of rare-earth doped glass and glass ceramic scintillators