Optical frequency conversion through cascaded nonlinear processes