A maximum principle for optimal control problems with neutral functional differential systems