Transition from circular to linear rotation of a vortex in an excitable cellular medium