On-chip electrically controlled routing of photons from a single quantum dot