A particle of charge q and mass m moves rectilinearly under the action of an electric field, E=4−2x, where x is a distance from the point where the particle was initially at rest. Calculate the distance travelled by the particle till it comes to rest.