Foreign governments criticise Hong Kong’s sentencing of 45 activists; Beijing defends it