Negative differential resistance and resistance switching behaviors in BaTiO3 thin films