Simulation code for 'Designing image segmentation studies: statistical power, sample size and reference standard quality'