added filter to check charge balance for structures in the transmuter. Makes doing substitutions easier