Using artificial intelligence to find new uses for existing medications