Western militaries, facing personnel shortages, are using retention bonuses to entice individuals to continue to stay in the ranks