Thermal distribution and reliability prediction for 3D Networks-on-Chip