Ambipolar organic transistors and near-infrared phototransistors based on a solution-processable squarilium dye