The bearing capacity of footings on sand with a weak layer