Anomalies, dualities, and topology of D = 6 N = 1 superstring vacua