Transmission losses in optical qubits for controlled teleportation