BigRIPS as a high resolution spectrometer for pionic atoms