A generalized Sturm theory for indefinite elliptic systems