Flexible quantum dot solar cells