Thermal behaviour of drugs from binary and ternary systems