Controlling PbS nanocrystal aggregation in conducting polymers