Development and characterization of polyethylene and deuterated polyethylene targets for nuclear physics experiments