Statistical Ensembles with Fluctuating Extensive Quantities