Physics-Informed Machine Learning With Applications To Power Systems