The structure of indazolinone and derivatives in the solid state and in solution: an X-ray and nuclear magnetic resonance study