Polaron ground state in a double heterostructure of polar crystals