Hosting Capacity for Renewable Generations in Distribution Grids