External positivity of discrete-time linear systems: transfer function conditions and output feedback