Integrated circuits having a three-dimensional layout