Optimization of pressure field in shock wave lithotripsy