MASTERING EMBEDDED GENERATION IN POWER SYSTEMS