Estimating a reference standard segmentation with spatially varying performance parameters: local MAP STAPLE