Consistent estimation of panel data sample selection models