Optimal nanoparticles for heat absorption and cost