Analytical and numerical solution to the nonlinear cubic Duffing equation: An application to electrical signal analysis of distribution lines