Teleportation of N-dimensional states