Hunter-Reay switches to Foyt's team