Pakistan ranks second in global terrorism index as attacks surge by 45%