Shape-controlled synthesis of platinum nanocrystals for catalytic and electrocatalytic applications