Numerical Modeling of Thermal and Mechanical Behaviors in the Selective Laser Sintering of Metals