Principles of the non-linear tuning of beam expanders