Leak and Burst Detection in Water Distribution Network Using Logic- and Machine Learning-Based Approaches