Method for studying the effects of thermal deformations on optical systems for space application