Crystal structure of CotA, an endospore coat protein from Bacillus subtilis