Residual-based block bootstrap for cointegration testing