Other professors can correct me if I am wrong, but I recall that you cannot use Rainbow for this cost because it uses the word "and" instead of "or".
It requires that you discard both a lightning AND a metal energy to use the attack and Rainbow only provides 1 type of energy at a time.
So to my knowlege, no, you cannot.
~Shadow