Optimal state estimation of controllable quantum dynamical systems