Phase Controlled Transistor Action by Cascading of Second-Order Nonlinearities in KTP