Composition-dependent morphological transition of hierarchically-ordered structures formed by multiblock terpolymers