Importance of solution equilibria in the directed assembly of metal chalcogenide mesostructures.