The rate of convergence of the Euler scheme to the solution of stochastic differential equations with nonhomogeneous coefficients and non-Lipschitz diffusion