Thermodynamics of interaction between risedronic acid and metal cations: investigations in solution and in the solid state