Anglo Irish Bank reports 8.2bn first-half losses