Finite element approximations of impulsive optimal control problems for heat equations