Determinants of the extent and duration of STAT3 signaling