Internal stress analysis in diamond films formed by d.c. plasma chemical vapour deposition