Physics-Informed Learning of Proprietary Inverter Models for Grid Dynamic Studies