Explain the difference between VLANs and subnetting, and how you have used them to segment a corporate network for security purposes.