Measuring long-term inequality of opportunity