Bootstrap identification of linear and nonlienar systems with applications to prediction and control problems