Theoretical study on the intramolecular charge transfer induced twisting of the nitro and dimethylamino groups