Linking environmental variability to village-scale malaria transmission using a simple immunity model