Exciton luminescence in the quantum hall and electron solid regimes