The former organisers of Hong Kong's vigil in remembrance of the 1989 Tiananmen Square crackdown have been convicted in a case brought under a China-imposed national security law.