Thermodynamic properties and hysteresis loops in a hexagonal core-shell nanoparticle.