Optical linewidths in chromium-doped glass and ceramic