Structural order and optical properties of tetrahedral amorphous solids