Characterization of teleportation in optics