A Stochastic Programming Framework for Optimal Storage Bidding in Energy and Reserve Markets