Wafer-level direct bonding of optimized superconducting NbN for 3D chip integration