From waste to resource: a comparative study of pectin extraction methods for enhanced structural and functional properties