The heating effect of magnetic fluids in an alternating magnetic field