Mesostructure engineering in additive manufacturing of alloys