Extension of Rayleigh–Ritz method for eigenvalue problems with discontinuous boundary conditions applied to vibration of rectangular plates