Optimized Planning and Scheduling for Modular and Offsite Construction