Scientists say they are a step closer to providing effective treatments for three "neglected" diseases after making a chemical which can kill the parasites that cause the illnesses.