Anodisation under pulsed or modulated current or potential