Identification and evaluation of energy theft using the state estimator in medium-voltage and low-voltage grids with exogenous parameters for planning expansion