Contingency Management In Power Systems And Demand Response Market For Ancillary Services In Smart Grids With High Renewable Energy Penetration