FirstEnergy reaches settlement to invest $500M in grid modernization