A flexible n-type organic semiconductor for optoelectronics