Position-dependent dynamics and stability of machine tools