Shock waves underlie efficient desalination process