FairGen: Enhancing Fairness in Text-to-Image Diffusion Models via Self-Discovering Latent Directions