Spontaneous emission of a photon: Wave-packet structures and atom-photon entanglement