Free electron lasers with a two-dimensional Bragg resonator