Resource preferences and the emergence of individual niche specialization within populations