Reinforcement learning approach for optimizing load shedding and controller parameter tuning in active islanded power systems