Elasto-optic properties and internal stress analysis for monoclinic and trigonal crystals