an endocarp is part of a plant