Twenty medics in Bahrain have been sentenced to between five and 15 years in prison, accused of attempting to overthrow the regime.