NAD(P) synthesis regulation in Bacillus subtilis