Groundwater waves in aquifers of intermediate depths