Determination of complex optical constants and photovoltaic device design of all-inorganic CsPbBr3 perovskite thin films.