Origin of negative differential resistance and memory characteristics in organic devices based on tris(8-hydroxyquinoline) aluminum