All optical modulation via nonlinear cascading in type II second harmonic generation