Electrodeposition of platinum nanoparticles in a room-temperature ionic liquid.