Optical investigation of cavitation erosion by laser-induced bubble collapse