An apparatus to study the energy and angular distributions of electron-bremsstrahlung photons from gaseous targets