Regulation and classification of voltage dips