Age-Based Maintenance under Population Heterogeneity: Optimal Exploration and Exploitation