What is the difference between layer 2 and layer 3 in the OSI model?