On the latent dimension of deep autoencoders for reduced order modeling of PDEs parametrized by random fields