Training of Physical Neural Networks