A mathematical framework for reducing the domain in the mechanical analysis of periodic structures