Hamlin takes Sprint Cup lead from Johnson at AAA Texas 500