The semiparametric efficiency bound for models of sequential moment restrictions containing unknown functions