An indirect prediction error method for system identification