Optimal Control Techniques For Resistive Wall Modes In Tokamaks