Detecting or automatically correcting errors in the position of weft threads in woven fabrics