The calibration method for the Mumford-Shah functional and free discontinuity problems