Derivation of an electronic frailty index for predicting short‐term mortality in heart failure: a machine learning approach