State selection in a cesium beam by laser-diode optical pumping