Photoproduction of Ko mesons from protons and from complex nuclei