Gorenstein duality for topological modular forms with level structure