A viologen-based UV indicator and dosimeter