Distributed multi-generation systems: energy models and analyses