An Integrated approach to improve the networks security in presence of high penetration of RES