Bahrain sentences 29 protesters to prison