The effect of grain boundaries on scintillation in rare-earth doped transparent ceramics