Topologies and measures on the space of functions of bounded variation taking values in a Banach or metric space