Core impurity transport in Alcator C-Mod L-, I- and H-mode plasmas