Energy Consumption Models at Urban Scale to Measure Energy Resilience