Process simulation of microstructure and relationship with mechanical properties in diecastings