Electrochemical synthesis and applications of transparent titania layers