An inertial alternating minimization with Bregman distance for a class of nonconvex and nonsmooth problems