Niche differences between age classes and intraspecific competition in age-structured populations