Mixed AgBiS2 nanocrystals for photovoltaics and photodetectors