MSc Thesis: Planning of synchronous distributed generation considering voltage profile, imbalance, and dip Grade Msc