A Generalized Pitman Efficiency for Nonparametric Tests