Investigation of magnetization reversal in chains of permalloy ellipses via magnetoresistance measurement and magnetic force microscopy