Coordination of optimal sizing of energy storage systems and production buffer stocks in a net zero energy factory. (15th March 2019)