Crystal Structure Control of Binary and Ternary Solid-Solution Alloy Nanoparticles with a Face-Centered Cubic or Hexagonal Close-Packed Phase.