Enhancing Machine Learning Potentials through Transfer Learning across Chemical Elements