Gravar-mail: Quantitative disease risk scores from EHR with applications to clinical risk stratification and genetic studies