Text this: Selective addressing of solid-state spins at the nanoscale via magnetic resonance frequency encoding