Mass ratio of two ions in a Penning trap by alternating between the trap center and a large cyclotron orbit