Vibrating-wire measurement method for centering and alignment of solenoids