Identification of source terms in wave equation with dynamic boundary conditions