How AI Image Generators Work: A Technical Overview of Stable Diffusion and Dall-E