Prediction of response to anticancer immunotherapy using gene signatures