Constructing whole of population cohorts for health and social research using the New Zealand Integrated Data Infrastructure