A higher-order Godunov method for the equations of ideal magnetohydrodynamics