Analysis of Error Field Sources in TOKAMAK Devices