Template synthesis of palladium nanotubes and their electrocatalytic properties