An Integrated Framework for Controllers Placement and Security in Software-Defined Networks Ecosystem