Mathematical modelling and optimisation of laser welding of butt joints