Optimization of working conditions for perovskite-based gas sensor devices by multiregression analysis