Total π-meson photoproduction cross section for lithium and beryllium