A couple's convictions for female genital mutilation of their daughter have been quashed after they served two years in prison, with a court declaring the overturned conviction a miscarriage of justice.