A theory for the shock-wave consolidation of powders