Foster named to AP All-America team