Basics of surface area and porosity analysis