Designing reliable and resilient smart low-voltage grids