Gaseous or foamed well-drilling compositions