Teaching IoT Security using CTF Problems