Essential oils encapsulated in polymer-based nanocapsules as potential candidates for application in food preservation