Tsirelson bounds for generalized Clauser-Horne-Shimony-Holt inequalities