Individualized Prediction of Treatment Effects Using Data from Both Embedded Clinical Trials and Electronic Health Records