NAMBU–JONA–LASINIO MODEL IN CURVED SPACETIME WITH MAGNETIC FIELD