Three dimensional stress analysis of a composite patch using stress functions