Former Israeli prime miniser Ehud Olmert has been sentenced to 18 months in prison in a bribery case.