Effects of cancer history on functional age and mortality