Stability conditions for a class of 2D continuous-discrete linear systems with dynamic boundary conditions