Optimization of the shape and the location of the actuators in an internal control problem