Stable PbS quantum dot ink for efficient solar cells by solution-phase ligand engineering