Factor accumulation in Canada before the Great Depression: investment and immigration dynamics