Crystal structure of a cyclodipeptide synthase from Bacillus thermoamylovorans