Simulating sintering process in SmCo5 magnets