Viscous potential flow analysis of stress induced cavitation in an aperture flow