Spectroscopic characterization and photochemistry of nitrogen-containing molecules relevant to Titan's atmosphere