Theory of stochastic NMR spectroscopy. Application of the ITÔ and Stratonovich calculus