Instantons and topological charge in lattice gauge theory