Analyticity and optimal damping for a multilayer Mead-Markus sandwich beam