Electrocatalytic and photocatalytic activity of Pt–TiO2 films on boron-doped diamond substrate