why do teeth have different layers