A British court has sentenced former soldier Daniel Khalife to 14 years and three months in prison for spying for Iran and escaping prison.