avfilter/vf_median: implement percentile option