Effects of terminal electron acceptor strength on film morphology and ternary memory performance of triphenylamine donor based devices