Controlling instability and squeezing from a cascaded frequency doubler