Phenogrouping and risk stratification of patients undergoing cardiac resynchronization therapy upgrade using topological data analysis