Preparation of nitro compounds