Analysis of the Duration and Energy Consumption of AES Algorithms on a Contiki-based IoT Device