Characterization and design of a freeform holographic optical element