Reliability assessment of active distribution networks