Investigation of cavitation in flowing media by lithotripter shock waves both in vitro and in vivo