A nodal finite element approach to calculate wire emission in 2D configurations