A versatile approach for the preparation of ceramics with porosity gradient: by using manganese and tin oxides as a model