Method of dehydration of oil-containing wastes