Tuning non-volatile memory characteristics via molecular doping of polymer semiconductors based on ambipolar organic field-effect transistors