Assessing extrema of empirical principal component functions