A novel molecularly imprinted polymer-solid phase extraction method coupled with high performance liquid chromatography tandem mass spectrometry for the determination of nitrosamines in water and beverage samples.