Ex-prison employee pleads guilty to having sex with inmate