Ink formulations based on (semi)conducting nanoparaticles