Panel Data Analysis with Heterogeneous Time Trends