Size- and shape-controlled platinum and palladium nanoparticles for catalytic and biomedical applications