Australian writer detained in China says will 'fight to the end'