Time-domain frequency-selective optical data storage in a solid-state material