Deep Impact's target Comet 9P/Tempel 1 at multiple apparitions: Seasonal and secular variations in gas and dust production