Preparation of foaming agent from photosynthetic bacteria liquid by direct thermal alkaline treatment