Investigation of the optical properties of uniform platinum, palladium, and nickel nanocrystals enables direct measurements of their concentrations in solution