Parents’ living conditions influence offspring fitness and competency