Optical grade bromide-based thin film electrolytes