Optimal configuration of an electrode array for measuring ventricles’ contraction