On a potential estimates approach to elliptic equations and its application to a priori estimates