Mesoscale modelling of selective laser melting