A cost minimization strategy for the control of hybrid AC-DC microgrids in industrial systems