The representation of harmonic structure in music: Hierarchies of stability as a function of context