An implementation of the BitTorrent protocol on Ethernet- and WiFi-enabled PIC microcontrollers