A procedure to detect hidden cointegration with the sieve bootstrap