What component of wood determines whether it is hardwood or softwood