Electromagnetic form factors in the Nambu-Jona-Lasinio model