Machine learning guided discovery of ternary compounds involving La and immiscible Co and Pb elements