A novel approach to testing for bioequivalence based on modeling the within-period dependence structure