Variational formulation of general relativity from 1915 to 1925 "Palatini's method" discovered by Einstein in 1925