Magnetohydrodynamic waves in second-order fluids