Mass spectrometric directed system for the continuous-flow synthesis and purification of diphenhydramine