Adams type inequalities and related partial differential equations in dimension four