Lifecycle analysis of the gender gap in paid and unpaid work by household structure