Topological quantum computation away from the ground state with Majorana fermions