Fabrication of a Nier type mass spectrometer: Its use in the estimation of potassium and force field study of some polyatomic molecules