Intermediate temperature fuel cells using alkaline and alkaline earth fluoride-based electrolytes