Rigorous intensity and phase-shift manipulation in optical frequency conversion