Technological profiles, upgrading and the dynamics of growth: Country-level patterns and trajectories across distinct stages of development