Effects of impurity radiation on reversed-field pinch evolution