Tuning memory performances from WORM to flash or DRAM by structural tailoring with different donor moieties