Seismic isolation of buildings using composite foundations based on metamaterials