Design and Analysis of NoCs for Low-Power 2D and 3D SoCs