Optical sensor for real time laser welding process monitoring