Bayesian Constraint Inference from User Demonstrations Based on Margin-Respecting Preference Models