Design of embedded electrostatic sensors for the RFX-mod2 device