Modification and control of divertor detachment in Alcator C-Mod