Separation of Gray and White Matter from MR Images Using the Polya Urn Model and the EM Algorithm