Gravar-mail: Optimal control approach to termination of re-entry waves in cardiac electrophysiology