Gravar-mail: Robust Inference of Population Structure for Ancestry Prediction and Correction of Stratification in the Presence of Relatedness