Three-Dimensional Gorenstein Singularities and SU(3) Modular Invariants