Logic-in-memory application of CMOS compatible silicon nitride memristor