Generation gap divides troops on gays in military