Development and validation of a dynamic model for regeneration of passivating baths using membrane contactors