An artificial neural network based deep collocation method for the solution of transient linear and nonlinear partial differential equations