Production of cold beams of ND3 with variable rotational state distributions by electrostatic extraction of He and Ne buffer-gas-cooled beams.