Distance protection for smart grids with massive generation from renewable sources