Smart Operation of Wind Turbines and Diesel Generators According to Economic Criteria