Effect of preheat and layer thickness on selective laser melting (SLM) of magnesium