A computational phase transformation model for selective laser melting processes