Flexible cue anchoring strategies enable stable head direction coding in both sighted and blind animals