Potential analysis on nonsmooth domains—Martin boundary and boundary Harnack principle