Security- and Privacy-Aware IoT Application Placement and User Assignment Book chapter (February 2022)