People in Northern Ireland are marginally opposed to the security forces being granted immunity from prosecution for Troubles-era incidents, a poll suggests.