Interconnecting distributed resources with electric power systems