Optimizing heart failure treatment following cardiac resynchronization therapy