Life-enabling moons can probably only form around small planets, study finds