Positive Sequence Component Extraction Based On Least-squares Applied To Synchronization In Distributed Generation