A dual-mode indium flame detector