A semi-analytical thermal model of selective laser melting process