Longitudinal phase space synthesis with tailored 3D-printable dielectric-lined waveguides