Hydrogen responses of ultrathin Pd films and nanowire networks with a Ti buffer layer