Effect of size and temperature on vacancy concentration in nanomaterials