Thermal and power aware task mapping on 3D Network on Chip