Planning Tools for the Integration of Renewable Energy Sources Into Low- and Medium-Voltage Distribution Grids