The prosecution of British soldiers for actions during the Troubles has proved controversial in the UK.