Production of smart nanocomposite for glass coating toward photochromic and long-persistent photoluminescent smart windows