Memory T cells persisting within the brain after local infection show functional adaptations to their tissue of residence