Swedish PM Lofven resigns, paving way for first woman PM