Gravar-mail: A generative probabilistic model and discriminative extensions for brain lesion segmentation – with application to tumor and stroke