Structure of the 8 Li and 8 B nuclei in an extended three-body model and astrophysical S 17 factor