Also display line profile in Gain series

We also display the line profile (along the low res region of the lead
line pattern).
Useful for the report we're writing.
Only show image when it makes sense
Calculate SED and output data to file

We now also calculate the surface entrance dose and output all the info
into a file, which is then subsequently used in the resolution analysis
report (~/EssentialMed/Documents/DemonstratorAnalysis)
Display optimizations