Invia SMS: Structural controllability and optimal control of complex networks