Power Attacks Resistance of Cryptographic S-boxes with added Error Detection Circuits