SMS: Optimal Model for Energy Management Strategy in Smart Building with Energy Storage Systems and Electric Vehicles