Complexity of Timeline-based Planning