Optimal response to chemotherapy for a mathematical model of tumor–immune dynamics