An analysis of modulated molecular beam mass spectrometry applied to nonlinear systems