Australia votes in favour of legalising gay marriage