Flexible car–following models for mixed traffic and weak lane–discipline conditions