Integrating Energy Storage Systems into Renewable Grid Applications: A Model-based Approach