Positive and negative linear compressibility and electronic properties of energetic and porous hybrid crystals with nitrate anions.