Microsoft Irish unit records $239.5m loss on patent-buying fund write-off