Bacillus subtilis ameliorates Escherichia coli-induced endometritis in mice via maintaining endometrial barrier and inhibiting inflammatory response.