Nonparametric tests for median by interpolation from sign tests