A computationally efficient thermal model for selective laser melting