Obama slams GOP candidates' anti-immigrant rhetoric