Synthesis and characterization of mesostructured alloys with controlled compositions