Eigenfrequencies and eigenmodes of a beam with periodically continuously varying spatial properties