Detecting beam offsets in laser welding of closed-square-butt joints by wavelet analysis of an optical process signal