Formation of cadmium stannates studied by electron spectroscopy