Retired navy officer gets 5-month prison sentence over China