Defects and processes in the solid state : geoscience applications