Prediction of acid rock drainage from automated mineralogy