Integrated Tail Assignment and Maintenance Task Scheduling