Multicast-Based Testing and Thermal-AwareTest Scheduling for 3D ICs with a StackedNetwork-on-Chip