A techno-economic analysis of an optimal self-sufficient district