Complexity of Timeline-Based Planning