Source Detection Using a 3D Sparse Representation: Application to the Fermi Gamma-ray Space Telescope