Preparation and reactions of some derivatives of 2,4-benzodiazepines and 1,3-diazepines