Anodic passivation of tin in slightly alkaline solutions