Methods of preserving fruits and vegetables