Steps to take before upgrading or selling your iPhone