Echocardiographic optimization of the atrioventricular and interventricular intervals during cardiac resynchronization