Collective spontaneous radiation of two atoms in the finite-Q cavity