the layer of the skin that provides a barrier against bacteria as well as chemical and mechanical injuries is the: