Dale Earnhardt Jr. wins wild race at Talladega Superspeedway