Measurement of residual stress in thin diamond films by Raman spectroscopy and the beam deflection equation