The simultaneous study of light emissions and shock waves produced by cavitation bubbles