Optimized weak measurement for spatial spin-dependent shifts at Brewster angle