Elliptic Baker–Akhiezer functions and an application to an integrable dynamical system