Elastic registration of histological serial sections