Electronic properties and corrosion resistance of passive films on austenitic and duplex stainless steels