Generation of cold pulsed molecular beams