Implementation of Perfectly Matched Layer Boundary Condition for Finite-Difference Time-Domain Simulation Truncated With Gain Medium