A Massera-type criterion for almost periodic solutions of higher-order delay or advance abstract functional differential equations. (11th November 2004)