Intramolecular charge-transfer transition in benzanilides and its dielectric medium modulation