Technology investment, bargaining, and international environmental agreements