A well-posedness theory in Sobolev spaces for the stochastic magnetohydrodynamic equations in the whole space