Optical and electrochemical properties of titania pillared clays