Targeted photostimulation uncovers circuit motifs supporting short-term memory