Mechanism underlying specificity of proteins targeting inorganic materials.