Pathway crosstalk enables cells to interpret TGF-β duration