Causal Machine Learning for Patient-Level Intraoperative Opioid Dose Prediction from Electronic Health Records