Developments of dynamical theory of RHEED and applications to the in situ monitoring of MBE growth