The Atomic And Electronic Structure Of Contaminants At The Mineral-Fluid Interface