A court in Hong Kong has convicted nine prominent pro-democracy activists for taking part in an unauthorised protest in 2019.