Lung Patient Treatment Plan Optimization In The Presence Of Magnetic Fields