M-step of prior parameters for LG-SSM