Effect of capillary and viscous forces on spreading of a liquid drop impinging on a solid surface