Swelling of biodegradable polymers for the production of nanocapsules and films with the incorporation of essential oils