Electrically detected interferometry of Majorana fermions in a topological insulator