A study of impending derailment and recovery of middle managers across career stages