Ene reactions of acyl nitroso intermediates with alkenes and their halocyclization