Ain Aeen / Gain Gaeen /Ghain Ghaeen (ع، غ) ki shakal shuru, darmiyan or akhir men kesi aati hai ? How are the shapes of Ain Aeen / Gain Gaeen /Ghain Ghaeen (ع، غ) when they fall in the beginning, middle and the end of the words?

Question: Ain Aeen / Gain Gaeen /Ghain Ghaeen (ع، غ) ki shakal shuru, darmiyan or akhir men kesi aati hai ? How are the shapes of Ain Aeen / Gain Gaeen /Ghain Ghaeen (ع، غ) when they fall in the beginning, middle and the end of the words?