Joint Trajectory and Communication Design for IRS-Assisted UAV Networks