Intelligent Contingencgy Overload-Avoiding Control of BESS for Renewable-Rich Local Area