Bertin surfaces and residual stress analysis in scintillating crystals