Adomian's method applied to identification and optimal control problems