Memory effect of photoinduced conductivity switching controlled by pulsed voltages in a molecular conductor