Preparation of amine-impregnated silica foams using agar as the gelling agent