Shallow donor states near a semiconductor-insulator-metal interface