A 1H, 13C and 15N NMR study in solution and in the solid state of six N‐substituted pyrazoles and indazoles