Under his stewardship, Athelhampton has become the country’s first net-zero Tudor stately home. Giles Keating tells Jess Morency how he balances heritage, visitors and writing historical fiction.