Towards community energy resilience