Improved pulse discrimination for a superconducting series nanowire detector by applying a digital matched filter