Quasi-two-dimensional electron gas at the interface of two dielectrics: ferroelectric and antiferromagnet