Understanding the soil mechanics of retaining walls