From what primary germ layers are the primary constituents of the skin derived?