Characterisation of an ancient 'chemical' preparation: pigments and drugs in the medieval Islamic Spain