Temporal Planning with Preferences and Time-Dependent Continuous Costs