On the prosodic hierarchy and tone sandhi in Mandarin