Simulation of ultrasonic degradation of macromolecules in solution