Modification of the absorption edge due to grain boundaries and mechanical stresses in polycrystalline semiconductor films