AIB makes a pre-tax profit of €987m