Modelling of An Integrated Multi-Energy System for A Nearly Zero Energy Smart District