Peru prolongs emergency state until October 31, may extend it until end of year: President