LICITUS: A lightweight and standard compatible framework for securing layer-2 communications in the IoT