Photoionization mass spectrometric study of selected organic compounds