Preparation and characterization of magnetic phase-change microcapsules