Control techniques in Grid-Tie and AC Micro/Smart Grid