Early JWST imaging reveals strong optical and NIR color gradients in galaxies at $z\sim2$ driven mostly by dust