Nanoparticle-based ink formulation