theoretical framework mining mill automatic