Rapper began strike to try to win pretrial freedom for himself, other detainees; they were arrested in June for allegedly conspiring to overthrow president