Dynamic wetting and dewetting by aqueous solutions containing amphiphilic compounds