Analytical solutions of nonlinear Klein–Gordon equation using the improved F-expansion method