Allow dynamic updating of ECAN stimulus and diffusion parameters

@sebastianruder FYI, this is related to a discussion we started previously.
well, that particular utility should probably be avoided, but there's a mild general need for such utilities in the c++ space.