Renewable energy storage and distribution scheduling for microgrids by exploiting recent developments in process network synthesis