SmartGen project – developments in the management of active distribution networks