Generalized coulomb-gas representations of An(1) models on the torus