Regression discontinuity design to evaluate the effect of statins on myocardial infarction in electronic health records