Analytic solution of stress distribution under a thin film edge in substrates