The ecology and evolution of tetracycline resistance