The US soldier who ran across the demilitarised zone into North Korea has been sentenced to 12 months in prison for desertion and dishonourably discharged.