Defence personnel under investigation over offensive emails