find equilibrium index for a given array of integers