Formation mechanism and anticorrosive properties of thin siloxane films on metal surfaces