Optimal sampling and reconstruction of MRI signals resulting from sinusoidal gradients