The Dust Size Distribution and Grain Shattering in Shock Waves