Photodisintegration of three- and four-body nuclei