Influence of inhomogenities of the magnetization and boundary conditions on spin waves spectra