A formalism for modelling traction forces and cell shape evolution during cell migration in various biomedical processes