Interpolating between BSDEs and PINNs -- deep learning for elliptic and parabolic boundary value problems