Resistive switching behaviors in electrodeposited BaTiOF4 nanorod layers