Optimal Dynamic Information Acquisition