Microscopic theory of dipole-exchange spin waves in magnetic multilayers