F4 Second harmonic generation in rare-earth ion doped nonlinear crystal