Modeling the heat treatment of sintered SmCo5 Magnets