Efficient spin Bell states and Greenberger–Horne–Zeilinger states analysis in the quantum dot–microcavity coupled system