Superconducting nanowire single-photon detector in optical waveguide based on Si/AlN/SiN multi-layer