The influence of a magnetic field on the heat transfer of a magnetic nanofluid in a sinusoidal channel