Theory of the Photoelastic Effect of Cubic Crystals