Nonstandard construction of the stochastic integral and applications to stochastic differential equations. I