modified function_DTI_CHARMED_create template: innards are separated in two subfunctions: function_DTI_CHARMED_energy_slice and function_DTI_CHARMED_energy_whole_head