A macroelement framework for shallow foundations including changes in configuration