SetupRHSforTDCSandTMS as well as fix for mapping field data 

SetupRHSforTDCSandTMS obtains electrode values now with loops. A check makes sure the data is not sent out of order, otherwise an algorithm processing exception gets thrown.

The mapping field data now returns the input as the output when the data is on the respective nodes or elements.
Not sure you need any of this code (to update progress); it should always execute in minimal time anyway (so the update_progress call will just slow down your code).