Pore size optimisation of humidity sensor—a probabilistic approach