Text this: Integrated FEA and Raytracing in Instrumentation for Astronomy: Smart Structures Evaluation and Structural Optimization