Registration of histology and magnetic resonance imaging of the brain