Morphological and physiological adaptations of wood-boring beetle larvae in timber