A Transformer-Based Approach for Diagnosing Fault Cases in Optical Fiber Amplifiers