Shaped nozzles for cryogenic buffer-gas beam sources