Applications of compressed air energy storage in cogeneration systems