Designing nano- and micro-structured polymer materials: from solution thermodynamics to phase inversion