Modelling selective laser melting of metallic powders