Heavy sentences against Hong Kong protesters weakens public confidence in courts: legal scholar