Generalization of port-based teleportation and controlled teleportation capability