Conical intersection optimization based on a double Newton-Raphson algorithm using composed steps