Spallation as an effect of laser-induced shock waves