Lateral loading of shallow foundations