Phase-Controlled Synthesis of Ruthenium and Palladium Nanocrystals