Sensitivity of the population and the Pancharatnam phase for a trapped ion with Stark shift