Synthesis of (S)-ricinoleic acid and its methyl ester with the participation of ionic liquid.