JK Rowling's unmasking as crime author yields donation to military charity