Advanced distribution management: a step to the Smart Grid