PDE-based reconstruction of the cerebral cortex from MR images