How long you should stay at one job, ex-Microsoft HR VP explains