Azo bridges from azines, XIV. Rigid polycycles with NN and CC functionalities