Scan-chain design and optimization for three-dimensional integrated circuits | Synapse