Spectroscopy and orbital periods of four cataclysmic variable stars