Real-time monitoring of ultra-high dose rate electron beams using bremsstrahlung photons