Semiclassical states of nonlinear Dirac equations with degenerate potential