Text this: Understanding the phase changes and optical properties in the solvothermal synthesis of iron pyrite