Leveraging electronic health records to identify risk factors for recurrent pregnancy loss across two medical centers: a case-control study