Text this: Cost-Based Modeling for Optimal Energy Management of Smart Buildings with Renewable Energy Resources and Electric Vehicles Using a Scenario-Based Algorithm