A unified approach to strategy-proofness of the deferred-acceptance rule and the top-trading cycles rule