Halle Berry apologises for considering playing transgender character in movie