Energetical aspects of N2 and Ar adsorption: specific adsorption, two-dimensional phase changes and adsorption in micropores