State the purpose of passing water through filter beds containing sand and gravel during the treatment of drinking water.