Study of shallow impurity states in compound semiconductors using high resolution photoluminescence spectroscopy