In the Cisco hierarchical network design model, which layer is responsible for routing between VLANs and applying QoS policies before traffic enters the core?