A Study on Distributed Generation with a Focus on Solar Power