Thermodynamic theory for preferred orientation in materials prepared by energetic condensation