Analytical solution of dam break wave in dry granular flows