Carlos Lopes resigns as ECA chief, said to eye African Union role