Failure anticipation scheme in distribution systems based on wave distortions and Montecarlo methods