The physics of solid state chemistry