HK media tycoon and Apple Daily founder Jimmy Lai has been sentenced to 20 years' jail, in a landmark case under the city's national security law.