Optimal fidelity of teleportation of coherent states and entanglement