Computing metamorphoses between discrete measures