External stimuli modulate the magnetic relaxation of lanthanide single-molecule magnets