Bahrain sentences 12 over Iran links