Photoelastic fringe pattern analysis by real-time phase-shifting method