Optimal dividends and capital injections for a spectrally positive Lévy process