Modeling mechanisms of water affinity and condensation on Si-based surfaces via experiments and applications