Recent Developments in Closed-Loop Approaches for Real-Time Mining and Petroleum Extraction