Conversion of Knill–Laflamme–Milburn Entanglement to Greenberger–Horne–Zeilinger Entanglement