A Cost Minimization Strategy for the Control of Hybrid AC-DC Microgrids in Industrial Systems