A proximal subgradient algorithm with extrapolation for structured nonconvex nonsmooth problems