A unified Bayesian hierarchical model for MRI tissue classification