Shape-dependent magnetic properties of gradient-diameter Co nanowire arrays