Work to protect the habitat of rare dragonfly and damselfly species has been carried out at Castle Fraser in Aberdeenshire by the National Trust for Scotland.