A smart inverter for modern electric power systems