Theory of the electromagnetic production of hyperons