Detection of the optogalvanic effect in flames with a microwave resonant cavity