MacNeille Completions of D-Posets and Effect Algebras