Generalized symplectic Cayley transforms and a higher order formula for the Conley–Zehnder index of symplectic paths