Text this: Self-referencing optical intensity sensor based on radio-frequency spectrum interrogation